package com.yida.gwj.vote.outside.enums;

/**
 * 投票字典类型
 *
 * @author lqq
 * @date 2023-03-23
 */
public enum GwjDictTypeEnum {

	//
	GWJ_VOTE_TYPE("gwj_vote_type", "公维金投票类别"),
	GWJ_AUDIT_STATUS("gwj_audit_status", "公维金投票审批状态"),
	GWJ_SUBMIT_STATUS("gwj_submit_status", "公维金投票提交状态"),
	GWJ_VOTE_STATUS("gwj_vote_status", "公维金投票状态"),
	GWJ_OWNER_VOTE_TYPE("gwj_owner_vote_type", "公维金业主投票方式");
	private final String type;
	private final String info;

	GwjDictTypeEnum(String type, String info) {
		this.type = type;
		this.info = info;
	}

	public String getType() {
		return type;
	}

	public String getInfo() {
		return info;
	}

	public static GwjDictTypeEnum getByCode(String type) {
		for (GwjDictTypeEnum item : values()) {
			if (item.getType().equals(type)) {
				return item;
			}
		}
		return null;
	}
}
